package entity;

import lombok.Data;

/**
 * @ClassName Commodity
 * @Description TODO
 * @Author lzq
 * @Date 2021/6/16 20:35
 */
@Data
public class Commodity {
    private Integer commodity_id;
    private String name;
    private Float price;
    private Integer quantity;
    private String commodity_type;
    private String picture;
    private String describe;
    private String business_id;

    private Integer buyNumber;

    public Commodity() {
    }

    public Commodity(String name, Float price, Integer quantity, String commodity_type, String picture, String describe, String business_id) {
        this.name = name;
        this.price = price;
        this.quantity = quantity;
        this.commodity_type = commodity_type;
        this.picture = picture;
        this.describe = describe;
        this.business_id = business_id;
    }

    public Commodity(Integer commodity_id,String name, Float price, Integer quantity, String commodity_type, String picture, String describe, String business_id) {
        this.commodity_id=commodity_id;
        this.name = name;
        this.price = price;
        this.quantity = quantity;
        this.commodity_type = commodity_type;
        this.picture = picture;
        this.describe = describe;
        this.business_id = business_id;
    }


    public Commodity(Integer commodity_id,String name, float price, int quantity, String describe) {
        this.commodity_id=commodity_id;
        this.name = name;
        this.price = price;
        this.quantity = quantity;
        this.describe = describe;
    }

    public Commodity(Integer commodity_id,String name, float price, int quantity, String describe,Integer buyNumber) {
        this.commodity_id=commodity_id;
        this.name = name;
        this.price = price;
        this.quantity = quantity;
        this.describe = describe;
        this.buyNumber=buyNumber;
    }
}
